package com.zx.dsptuneup_cloud.Util;

/**
 * The interface Constants.
 */
public interface Constants {
    public static final String HOST = "192.168.4.1";
//    public static final int TCP_PORT = 5288;
//  public static final String HOST = "255.255.255.255";
   // public static final String HOST = "255.255.255.255";
    public static final int TCP_PORT = 8266;

    /*
     * udp基础参数
     */
    public static final String udp_head = "2E437669";
    public static final String udp_end = "656E642E";
    public static final String source_device = "4810";
    public static final String source_destination = "0001";
    public static final String common_destination = "FFFF";
    public static final String priority_evel = "0064";
    public static String group_number = "0001";
    public static final String udp_constans1 = "00020000";
    public static final String udp_constans2 = "000200";

    /*
     * udp 指令请求常量
     */
    //查询心跳+数据长度
    public static final String order_heartbeat_request = "00020013";
    //所属编组内查询音频处理器14路输入通道数据
    public static final String order_14channl_request = "4100";
    //所属编组内查询音频处理器8路输出通道数据
    public static final String order_8channl_request = "4102";
    //所属编组内查询音频处理器音频矩阵数据
    public static final String order_matrix_request = "4104";
    //所属编组内查询音频处理器高低音数据
    public static final String order_high_bass_request = "4106";
    //所属编组内设置音频处理器输入参数
    public static final String order_iuput_paramter_request = "410a";
    //所属编组内设置音频处理器输出参数
    public static final String order_output_paramter_request = "410c";
    //所属编组内设置音频处理器矩阵
    public static final String order_seting_matrix_request = "410e";
    //所属编组内设置音频处理器高低音数据
    public static final String order_seting_high_bass_request = "4110";
    //所属编组内设置音频处理器REMOTE
    public static final String order_seting_remote_request = "4112";
    //查询所属编组内音频处理器REMOTE
    public static final String order__remote_request = "4108";
    //通知矩阵页面更新数据
    public static final String RESH_RECEIVER_BROADCAST = "Receiver";
//
    /**
     * The interface Element type eum.
     * 0x01	输入/输出通道
     * 0x02	 静音
     * 0x03	音量
     * 0x04	高低切
     */
    interface inputAndOutput_event_typeEnum {
        String TYPE="00";               //type--已经是16进制啦，直接用哦
        String INPUT = "01";           // 输入/输出通道 --
        String MUTE = "02";           // 静音 --
        String CANLE_MUTE = "00";           // 取消静音 --
        String OPEN_MUTE = "01";           // 设置静音 --
        String VOlume = "03";           // 音量 --
        String SWITCH = "04";           // 高低切 --
    }
    /**
     * The interface Protocol enum.
     * 协议头(.cvi)
     * 协议尾(.end)
     */
    interface protocolEnum {
        String head = "2E637669";
        String tail = "2E656E64";

        String returnTail = "2e646e0d"; // 应答数据的尾巴
    }

    /**
     * 操作类型
     * 0x01 	APP -> Device请求参数
     * 0x02	Device ->APP 回复请求
     * 0x03	APP -> Device设置参数
     * 0x04	Device -> APP 回复设置
     * 0x0A        -> 恢复出厂设置
     */
    interface operation_typeEnum {
        String get_device = "01";
        String return_device_get = "02";
        String set_device = "03";
        String return_device_set = "04";

        String reboot = "0A";
    }

    /**
     * The interface Element type eum.
     * 0x01	输入通道
     * 0x02	输出通道
     * 0x03	音频矩阵路由
     * 0x04	高低音调节
     * 0x05	互斥命令
     */
    interface element_typeEnum {
        String INPUT = "01";           // 输入通道
        String OUTPUT = "02";           // 输出通道
        String XMOSE = "03";           // 混响控制
        String HIBS = "04";           // 高低音调节
        String MUTEXmose = "05";       // 麦克风互斥命令
        String SWITCH="04"  ;   // 高低切事件
        String HIGH="00"  ;          //高切
        String BASS="01"  ;          //低切
    }

    /**
     * The interface channelEnu.
     */
//通道---
    interface channelEnum {
        int line1 = 0;
        int line2 = 1;
        int line3 = 2;
        int line4 = 3;
        int line5 = 4;
        int line6 = 5;
        int line7 = 6;
        int line8 = 7;
        int line9 = 8;
        int line10 = 9;
        int line11 = 10;
        int line12 = 11;
        int line13 = 12;
        int line14 = 13;
    }


    /**
     * The interface Input type num.
     * 调节模式、类型
     * input_eq        输入-EQ
     * input_mute      输入-静音
     * input_volume    输入-音量
     * input_switch    输入-高低切
     */
    interface TypeEnum {
        String EQ = "01";
        String MUTE = "02";
        String VOLUME = "03";
        String SWITCH = "04";
    }


    /**
     * 高低切
     */
    interface highLowCutEnum {
        String high = "00"; // 高切
        String low = "01"; // 低切
        String highAndlow = "02"; // 高低切
        String none = "03"; // none
    }


    /**
     * The interface Mute x num.
     * 麦克风互斥
     * 0x00
     * 0x01
     */
    interface muteXEnum {
        int muteX_on = 1;
        int muteX_off = 0;
    }


    interface SetOkEnum {
        String MUTE = "[MUTE] SET OK\r"; // 静音设置成功
        String GAIN = "[GAIN] SET OK\r"; // 增益设置成功
        String EQ = "[EQ] SET OK\r"; // EQ设置成功
        String TRAP = "[TRAP] SET OK\r"; // 陷波设置成功
        String WIFI = "[WIFI] SET OK\r"; // WIFI信息设置成功,然后设备会重启
        String HIBS = "[HIBS] SET OK\r"; // 高低音设置成功
        String ECHO = "[ECHO] SET OK\r"; // 混响设置成功
        String BLUE = "[BLUE] SET OK\r"; // 蓝牙设置成功
        String HAND = "[HAND] SET OK\r"; // 手麦设置成功

        String RESTORE = "[RESTORE] SET OK\r"; // 恢复配置设置成功
    }

}
